package com.eqdd.yiqidian.ui.mine.xiaoxi;

import android.view.View;

import com.eqdd.yiqidian.bean.EnterBean;
import com.eqdd.yiqidian.ui.base.BaseEnterActivity;
import com.eqdd.yiqidian.utils.ToastUtil;

/**
 * Created by lvzhihao on 17-5-20.
 */

public class MyXiaoxiActivity extends BaseEnterActivity {
    private String[] contents = new String[]{
            "联络书",
    };
    private Class[] classes = new Class[]{
            ContactBookNewsActivity.class,
    };

    @Override
    public void itemClick(int p) {

        if (classes[p] != null) {
            startActivity(classes[p]);
        } else {
            ToastUtil.showShort("该模块暂未开发");
        }
    }

    @Override
    public void initEnterData() {
        initTopTitleBar(View.VISIBLE, "我的消息");
        for (int i = 0; i < contents.length; i++) {
            EnterBean enterBean = new EnterBean();
            enterBean.setContent(contents[i]);
            enterBean.setIcon(false);

            enterBean.setEnter(true);
            enterBean.setIcon(false);
            enterBeans.add(enterBean);
        }
    }
}
